package request

type TmallMsdClaimQueryRequest struct {
	/*
	   工单id     */
	WorkcardId *int64 `json:"workcard_id,omitempty" required:"false" `
	/*
	   淘宝交易订单号，实物子订单     */
	BizOrderId *int64 `json:"biz_order_id,omitempty" required:"false" `
	/*
	   当前页数 defalutValue��1    */
	PageIndex *int64 `json:"page_index,omitempty" required:"false" `
	/*
	   每页大小 defalutValue��50    */
	PageSize *int64 `json:"page_size,omitempty" required:"false" `
	/*
	   交易服务订单号     */
	ServiceOrderId *int64 `json:"service_order_id,omitempty" required:"false" `
}

func (s *TmallMsdClaimQueryRequest) SetWorkcardId(v int64) *TmallMsdClaimQueryRequest {
	s.WorkcardId = &v
	return s
}
func (s *TmallMsdClaimQueryRequest) SetBizOrderId(v int64) *TmallMsdClaimQueryRequest {
	s.BizOrderId = &v
	return s
}
func (s *TmallMsdClaimQueryRequest) SetPageIndex(v int64) *TmallMsdClaimQueryRequest {
	s.PageIndex = &v
	return s
}
func (s *TmallMsdClaimQueryRequest) SetPageSize(v int64) *TmallMsdClaimQueryRequest {
	s.PageSize = &v
	return s
}
func (s *TmallMsdClaimQueryRequest) SetServiceOrderId(v int64) *TmallMsdClaimQueryRequest {
	s.ServiceOrderId = &v
	return s
}

func (req *TmallMsdClaimQueryRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.WorkcardId != nil {
		paramMap["workcard_id"] = *req.WorkcardId
	}
	if req.BizOrderId != nil {
		paramMap["biz_order_id"] = *req.BizOrderId
	}
	if req.PageIndex != nil {
		paramMap["page_index"] = *req.PageIndex
	}
	if req.PageSize != nil {
		paramMap["page_size"] = *req.PageSize
	}
	if req.ServiceOrderId != nil {
		paramMap["service_order_id"] = *req.ServiceOrderId
	}
	return paramMap
}

func (req *TmallMsdClaimQueryRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
